package co.yixiang.modules.monitoring.service;

import co.yixiang.common.service.BaseService;
import co.yixiang.modules.monitoring.entity.domain.YxMonitoring;
import co.yixiang.modules.monitoring.entity.query.YxMonitoringQueryCriteria;
import co.yixiang.modules.monitoring.entity.vo.YxMonitoringSmallVo;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface YxMonitoringService extends BaseService<YxMonitoring> {


    /**
     * 查询所有数据不分页
     * @param criteria 条件参数
     * @return List<YxMonitoring>
     */
    Map<String, Object> queryAllByCateId(YxMonitoringQueryCriteria criteria, Pageable pageable);


    YxMonitoringSmallVo queryMonitoringDetail(Long id,String channel);


//================================= 后台 ===================================================

    /**
     * 查询数据分页
     * @param criteria 条件
     * @param pageable 分页参数
     * @return Map<String, Object>
     */
    Map<String, Object> queryAll(YxMonitoringQueryCriteria criteria, Pageable pageable);

    /**
     * 查询所有数据不分页
     * @param criteria 条件参数
     * @return List<YxMonitoring>
     */
    List<YxMonitoring> queryAll(YxMonitoringQueryCriteria criteria);

    /**
     * 新建
     * @param monitoring
     * @return
     */
    YxMonitoring saveMonitoring(YxMonitoring monitoring, Boolean flag);

    /**
     * 删除
     * @param id
     * @return
     */
    Boolean removeMonitoring(Integer id);

    /**
     * 修改
     * @param monitoring
     * @return
     */
    YxMonitoring updateMonitoring(YxMonitoring monitoring);

}
